package com.edais.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.edais.domain.ThirdPlatformBank;
import com.edais.domain.ThirdProductRoute;
import com.edais.persistence.ThirdProductRouteMapper;

/**
 * 第三方产品路由
 * 
 * @author aohj
 * 
 */
@Repository
public class ThirdProductRouteDao {

	@Autowired
	private ThirdProductRouteMapper thirdProductRouteMapper;

	/**
	 * @param map
	 *            bankName productCode
	 * @return
	 */
	public List<ThirdProductRoute> getThirdProductRoutes(
			Map<String, String> paramMap) {
		return thirdProductRouteMapper.getThirdProductRoutes(paramMap);
	}

	/**
	 * @param map
	 *            bankName thirdPlatformCode
	 * @return
	 */
	public ThirdPlatformBank getThirdPlatformBank(Map<String, String> paramMap) {
		return thirdProductRouteMapper.getThirdPlatformBank(paramMap);
	}
	
	/**
	 * 查询第三方银行
	 * 根据bankCode
	 * @param paramMap
	 * @return
	 */
	public ThirdPlatformBank getThirdPlatformBankCode(Map<String, String> paramMap){
		return thirdProductRouteMapper.getThirdPlatformBankCode(paramMap);
	}
}